package com.xbx.admin.entity.user.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 用户授权对象
 *
 * @author 89005691
 * @create 2018-08-30 21:08
 */
@Data
@ApiModel("用户授权对象")
public class UserInfoForm {

    /**
     * id
     */
    @NotNull(message = "角色id")
    @ApiModelProperty(value = "角色id", example = "1", required = true, notes = "多个使用逗号隔开")
    private String roleId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @DecimalMax(value = "" + Long.MAX_VALUE, message = "用户id不合法")
    @DecimalMin(value = "" + 0, message = "用户id不合法")
    @ApiModelProperty(value = "用户id", required = true)
    private Long id;
}
